package com.efast.dmom.mes.dao.entity;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.dmom.mes.dao.base.PartRelateBaseEntityDao;
import com.efast.dmom.mes.entity.BomEntity;

public interface BomDao extends PartRelateBaseEntityDao<BomEntity>{
	/**
	 * 判断bom编号是否存在
	 * @param 
	 * @return
	 */
	public BomEntity getBomByNameAndRevision(@Param(value = "bomName")String bomName,@Param(value = "bomRevision")String bomRevision);

	public List<BomEntity> getAllBom();

	public List<BomEntity> getAllBomAndBomItem(@Param(value = "entity") BomEntity entity,@Param(value = "start") int start,@Param(value = "length") int length);
	
	public BomEntity getByName(String name);
}
